package cn.jdy.plugins.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import cn.jdy.common.bo.BaseEntry;
import cn.jdy.platform.entity.ConfValue;

/**
 * @author: luzhirui
 * @title : 采集站点管理实体类
 */
@Entity
public class RobotManager extends BaseEntry {

  private static final long serialVersionUID = 1L;
  
  @Id
  @GeneratedValue(strategy = GenerationType.AUTO)
  private Long id;
  @Column(nullable = false,length = 1000)
  private String name; // 采集站点名称
  private String charset; // 采集站点编码
  private String type; // 网址类型
  private String url; // 网址地址
  private String contain; // 网址中必须包含内容
  private String exclusive; // 网址中不得包含内容
  private String startflag; // 截取网址内容开始标识
  private String endflag; // 截取网址内容结束标识
  private String matcher_title; // 标题匹配规则
  private String filter_title; // 标题过滤选项
  private String matcher_author; // 作者匹配规则
  private String filter_author; // 作者过滤选
  private String matcher_source; // 来源匹配规则
  private String filter_source; // 来源过滤选项
  private String matcher_content; // 内容匹配规则
  private String filter_content; // 内容过滤选项
  @Column(columnDefinition = "datetime", updatable = false)
  private String lasttime; // 最后采集时间
  
  @Column(nullable = false)
  private Long columnId;
  
  @ManyToOne
  @JoinColumn(name = "columnId", insertable = false, updatable = false)
  private ConfValue cv;
  
  
  public Long getId() {
    return id;
  }
  public void setId(Long id) {
    this.id = id;
  }
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getCharset() {
		return charset;
	}
	public void setCharset(String charset) {
		this.charset = charset;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getContain() {
		return contain;
	}
	public void setContain(String contain) {
		this.contain = contain;
	}
	public String getExclusive() {
		return exclusive;
	}
	public void setExclusive(String exclusive) {
		this.exclusive = exclusive;
	}
	public String getStartflag() {
		return startflag;
	}
	public void setStartflag(String startflag) {
		this.startflag = startflag;
	}
	public String getEndflag() {
		return endflag;
	}
	public void setEndflag(String endflag) {
		this.endflag = endflag;
	}
	public String getMatcher_title() {
		return matcher_title;
	}
	public void setMatcher_title(String matcher_title) {
		this.matcher_title = matcher_title;
	}
	public String getFilter_title() {
		return filter_title;
	}
	public void setFilter_title(String filter_title) {
		this.filter_title = filter_title;
	}
	public String getMatcher_author() {
		return matcher_author;
	}
	public void setMatcher_author(String matcher_author) {
		this.matcher_author = matcher_author;
	}
	public String getFilter_author() {
		return filter_author;
	}
	public void setFilter_author(String filter_author) {
		this.filter_author = filter_author;
	}
	public String getMatcher_source() {
		return matcher_source;
	}
	public void setMatcher_source(String matcher_source) {
		this.matcher_source = matcher_source;
	}
	public String getFilter_source() {
		return filter_source;
	}
	public void setFilter_source(String filter_source) {
		this.filter_source = filter_source;
	}
	public String getMatcher_content() {
		return matcher_content;
	}
	public void setMatcher_content(String matcher_content) {
		this.matcher_content = matcher_content;
	}
	public String getFilter_content() {
		return filter_content;
	}
	public void setFilter_content(String filter_content) {
		this.filter_content = filter_content;
	}
	public String getLasttime() {
		return lasttime;
	}
	public void setLasttime(String lasttime) {
		this.lasttime = lasttime;
	}
	public Long getColumnId() {
		return columnId;
	}
	public void setColumnId(Long columnId) {
		this.columnId = columnId;
	}
	public ConfValue getCv() {
		return cv;
	}
	public void setCv(ConfValue cv) {
		this.cv = cv;
	}
		
}
